//没有了pch文件，这个框架要自己导入
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define MTColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define MTGlobalBg MTColor(230, 230, 230)
#define MTRandomColor MTColor(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))

#define MTNotificationCenter [NSNotificationCenter defaultCenter]
//数据存储
#define MTUserDefaults [NSUserDefaults standardUserDefaults]

//得到当前设备的宽高
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#define DSIsLandscape (SCREEN_WIDTH > HMScreenPW)

//设置字体大小
#define setSystemFont(f) [UIFont systemFontOfSize:f]
//字体大小为18
#define setFont20 [UIFont systemFontOfSize:20.0]
//字体大小为18
#define setFont19 [UIFont systemFontOfSize:19.0]
//字体大小为18
#define setFont18 [UIFont systemFontOfSize:18.0]
//字体大小为16-17
#define setFont17 [UIFont systemFontOfSize:17.0]
#define setFont16 [UIFont systemFontOfSize:16.0]
//说明性文字14-15
#define setFont14 [UIFont systemFontOfSize:14.0]
#define setFont15 [UIFont systemFontOfSize:15.0]
//较小的文字10-13
#define setFont13 [UIFont systemFontOfSize:13.0]
#define setFont12 [UIFont systemFontOfSize:12.0]
#define setFont11 [UIFont systemFontOfSize:11.0]
#define setFont10 [UIFont systemFontOfSize:10.0]

//DEBUG是系统自带的，发布的时候是release
#ifdef DEBUG
#define MTLog(...) NSLog(@"%s %d \n %@\n\n", __func__, __LINE__, [NSString stringWithFormat:__VA_ARGS__])
#else
#define MTLog(...)
#endif

extern NSUInteger const HMScreenLW;
extern NSUInteger const HMScreenPW;
//====常量
//分割线的高度_0.5
extern CGFloat XCYLineHeight_Small;
//分割线的高度_1
extern CGFloat XCYLineHeight_Normal;
//ToolBar底部工具条的高度
extern CGFloat XCYToolBarHeight;
//NavBar顶部的高度
extern CGFloat XCYNavBarHeight;
//Cell的高度、顶部条的高度
extern CGFloat XCYHeight_44;
//边距
extern CGFloat XCYMargin_5;
extern CGFloat XCYMargin_10;
extern CGFloat XCYMargin_15;
extern CGFloat XCYMargin_20;
extern CGFloat XCYMargin_25;
extern CGFloat XCYMargin_30;
extern CGFloat XCYMargin_35;
extern CGFloat XCYMargin_40;
extern CGFloat XCYMargin_45;
extern CGFloat XCYMargin_50;
//列表条数
extern NSInteger XCYListPageSize;
//0.0001
extern CGFloat XCYTableHead0;

//====通知
//登录、注册成功
extern NSString * const DSLoginRegisgerSuccessNote;
//内容的图片点击
extern NSString * const DSUnitInnerViewDidIconViewClickNote;
//学习通关后刷新单元列表
extern NSString * const DSLearnPassDidRefreshUnitListNote;
//IAP支付成功
extern NSString * const DSIAPSuccessDidRefreshListNote;

//====返回参数名
//提示信息
extern NSString * const msg;
//code
extern NSString * const errorCode;
//sessionid
extern NSString * const sessionid;
//appIds
extern NSString * const appIds_key;

//域名
//登录、注册、首页、排行榜等的域名
extern NSString * const DSDomain;
//图片(不包括学习界面)和json下载的域名
extern NSString * const DSMainDomain;
//学习界面的图片和音频
extern NSString * const DSExerciseDomain;
//是否调试模式
extern BOOL const isDeBug;

//=====DSExerciseDomainAddress
extern NSString * const DSExerciseDomainAddress;

//=====Schemes
extern NSString * const DSJYScheme;

//=====第三方AppId
//腾讯Bugly的AppId
extern NSString * const DSBuglyAppId;
//Alipay的AppId
extern NSString * const DSAlipayAppId;

//=====阿里云OSS
extern NSString * const AccessKey;
extern NSString * const SecretKey;
extern NSString * const endPoint;
extern NSString * const bucketName;
